package cn.edu.zafu.bigdata.yt.findMAX;

import java.util.ArrayList;
import java.util.List;

public class TestGeneric_yt {
    public static void main(String[] args) {
        
        List<Integer> integerList = new ArrayList<>();
        integerList.add(10);
        integerList.add(20);
        integerList.add(5);
        integerList.add(30);

        
        Integer maxInteger = GenericUtils_yt.findMax(integerList);
        System.out.println("Maximum Integer: " + maxInteger);

        System.out.println(); 

        
        List<String> stringList = new ArrayList<>();
        stringList.add("apple");
        stringList.add("stable");
        stringList.add("pear");
        stringList.add("jumble");

        
        String maxString = GenericUtils_yt.findMax(stringList);
        System.out.println("Maximum String: " + maxString);
    }
}
